﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using BusinessLogic;

namespace AccountingGui.Views
{
    public partial class PaymentListForm : Form
    {
        public PaymentListForm()
        {
            InitializeComponent();
        }

        private void PaymentListForm_Load(object sender, EventArgs e)
        {
            using (var context = new WGRUSEntities())
            {
                paymentBindingSource.DataSource = context.Payments.OrderBy(p => p.Id).ToList();
            }
        }
    }
}
